import re

class Plan:
    def __init__(self, lang: str, 方向: str, plans: list[str], intro: list[str],user_level: int = 0):
        assert len(plans) == 10 and len(intro) == 10, "内容和介绍数组长度必须一致且为10"
        self.lang = lang
        self.方向 = 方向
        self.plans = plans  # 计划内容数组
        self.intro = intro  # 计划介绍数组
        self.user_level = user_level

class Project:
    def __init__(self, code: str, md: str, name: str='project', answer: str=''):
        self.code = code
        self.md = md
        self.name = name
        self.answer = answer

# 新增 UserStatus 类
class UserStatus:
    def __init__(self, is_new_user: bool, lang: str | None, direction: str | None, user_level: int | None):
        self.is_new_user = is_new_user
        self.lang = lang
        self.direction = direction
        self.user_level = user_level # 添加 user_level